<?php if (!defined('THINK_PATH')) exit(); /*a:1:{s:68:"D:\phpStudy\WWW\mangmeshi/./application/admin\view\user\my_jobs.html";i:1521973343;}*/ ?>
<style>
    .div-l,.div-ll{
        float: left;
        width:100px;
    }
    .div-r{
        float: right;
        width:100px;font-size: 14px;
    }
    .div-lr{
        float: right;
        width:100px;
    }
</style>
<form class="form-horizontal bv-form" role="form" id="listForm" style="width: 96%;margin: 2%;">
    <div class="panel panel-default" style="border: 1px solid lightskyblue; height: auto;margin-bottom: 7px">
        <div class="panel-heading" role="tab" style="background-color: lightskyblue;">
            <div class="panel-title" style="font-size: 16px;color: #FFF;">
                <div class="div-ll">
                    类型
                </div>
                <div class="div-ll" style="width: 40%;overflow: hidden;line-height: 20px;max-height: 20px">职位</div>
                <div class="div-lr" style="width: 100px;color: dodgerblue;text-align: center;color: #fff;">查看详情</div>
                <div class="div-lr" style="width: 150px;">发布时间</div>
                <div class="div-lr" style="">职位状态</div>
            </div>
        </div>
    </div>
    <?php if(is_array($data) || $data instanceof \think\Collection): $i = 0; $__LIST__ = $data;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$da): $mod = ($i % 2 );++$i;?>
    <div class="panel panel-default" style="border: 1px solid #CCC; height: auto;">
        <div class="panel-heading" role="tab" >
            <h2 class="panel-title" style="font-size: 16px;">
                <div class="div-l">
                    <?php if($da['job_type']==1): ?>个人发布：<?php endif; if($da['job_type']==2): ?>企业发布：<?php endif; if($da['job_type']==3): ?>找活干：<?php endif; ?>
                </div>
                <div class="div-l" style="width: 40%;overflow: hidden;line-height: 20px;max-height: 20px"><?php echo $da['job_name']; ?></div>
                <div class="div-r myjobinfo" id="<?php echo $da['job_id']; ?>" style="width: 100px;color: dodgerblue;text-align: center">查看详情</div>
                <div class="div-r" style="width: 150px;"><?php echo $da['job_createtime']; ?></div>
                <div class="div-r" style=""><?php if($da['job_status']==1): ?>正常启用<?php else: ?><span style="color: red;">禁用隐藏</span><?php endif; ?></div>
            </h2>
        </div>
    </div>
    <br/>
    <?php endforeach; endif; else: echo "" ;endif; ?>
</form>

<script>
    $('.myjobinfo').click(function () {
        var jid = $(this).attr('id');
        var content = "";
        $.ajax({
            url:"admin/Job/jobInfo",
            data:'jid=' + jid,
            type:'POST',
            dataType:'HTML',
            success:function(returndata){
                content = returndata;
                $.TeachDialog({
                    modalId: null,
                    animation: null,
                    largeSize:true,
                    title: "<h2>职位详情</h2>",
                    content: content,
                    showCloseButton: true,
                    showCloseButtonName: '关闭',
                    CloseButtonAddFunc: function () {

                    }
                });
            },
            error:function(){
                alert('数据返回出错，无伤大雅，请继续');
            }
        });
    })
</script>



